package com.lin.springcloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @ author:lin tingfeng
 * @ data:2021/10/8-23:46
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)//链式写法
public class Dept implements Serializable {
    private Long deptno;
    private String deptname;
    private String db_source;

    public Dept(String deptname) {
        this.deptname = deptname;
    }
    /**
     * 正常写法：Dept dept = new Dept(); dept.set..(); dept.set..();dept.set..()；
     * 链式写法：Dept dept = new Dept(); dept.set..().set..().set..()；
     */
}
